package com.lovcreate.filter;

import javax.servlet.*;
import java.io.IOException;

/**
 * Created by Administrator on 2016/7/21.
 */
public class UserLoginServletFilter2 implements Filter {
    @Override
    public void init(FilterConfig filterConfig) throws ServletException {
        System.out.println("init2");
    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {
        System.out.println("doFilter2 start");
        filterChain.doFilter(servletRequest,servletResponse);
        System.out.println("doFilter2 end");
    }

    @Override
    public void destroy() {
        System.out.println("destroy2");
    }
}
